package com.iplant.wms.serviceImpl.dao.bill;

import com.iplant.base.po.OutResult;
import com.iplant.base.po.Pagination;
import com.iplant.base.utils.annotation.dao.DBBaseDAO;
import com.iplant.base.utils.sql.BaseDAO;
import com.iplant.basic.service.po.bms.BMSEmployee;
import com.iplant.wms.service.po.bill.WMSBillType;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@DBBaseDAO(WMSBillType.class)
public class WMSBillTypeDAO extends BaseDAO {

    private static WMSBillTypeDAO Instance = null;

    private WMSBillTypeDAO() {
        super("");
        this.Init();
    }

    public static WMSBillTypeDAO getInstance() {
        if (Instance == null) {
            Instance = new WMSBillTypeDAO();
        }
        return Instance;
    }




    public List<WMSBillType> WMS_QueryBillTypeList(BMSEmployee wLoginUser, int wTypeMode, int wActive,
                                                     Pagination wPagination, OutResult<Integer> wErrorCode) {

        Map<String, Object> wParams =new HashMap<>();
        wParams.put("TypeMode", wTypeMode);

        wParams.put("Active", wActive);

        return this.SelectPOList(wLoginUser, wParams, wPagination, wErrorCode);
    }
}
